import request from '@/utils/request'
/**
 * 数据统计接口
 */
// 营业额统计
export const getTurnoverStatistics = (params) => {
  return request.get('/report/turnoverStatistics', {
    params: params
  })
}

// 用户统计
export const getUserStatistics = (params) => {
  return request.get('/report/userStatistics', {
    params
  })
}

// 订单统计
export const getOrderStatistics = (params) => {
  return request.get('/report/ordersStatistics', {
    params
  })
}

// 销量Top10
export const getTop10 = (params) => {
  return request.get('/report/top10', {
    params
  })
}

// 导出最近30天的数据表格
export const getExcelData = () => {
  return request.get('/report/export', {
    responseType: 'blob'
  })
}
